import request from '@/utils/request'

// 查询任务下发列表
export function listIssued(query) {
  return request({
    url: '/lims/issued/list',
    method: 'get',
    params: query
  })
}

// 查询任务下发列表
export function listByBatchid(query) {
  return request({
    url: '/lims/issued/listByBatchid',
    method: 'get',
    params: query
  })
}
// 查询任务下发详细
export function getIssued(issuedId) {
  return request({
    url: '/lims/issued/' + issuedId,
    method: 'get'
  })
}
// 新增任务下发
export function addIssued(data) {
  return request({
    url: '/lims/issued',
    method: 'post',
    data: data
  })
}

// 修改任务下发
export function updateIssued(data) {
  return request({
    url: '/lims/issued',
    method: 'put',
    data: data
  })
}
// 删除任务下发
export function delIssued(issuedId) {
  return request({
    url: '/lims/issued/' + issuedId,
    method: 'delete'
  })
}
  // 选择模板任务下发
  export function downIssued(downTemplate) {
    return request({
      url: '/lims/issued/downIssued/' ,
      method: 'post',
      data: downTemplate
    })
}



